﻿using System;

namespace YArchitech.LIB
{
	public class ListItem
	{
		public ListItem()
		{
			this.name = "";
			this.value = "";
		}

		public ListItem(string name, string value)
		{
			this.name = name;
			this.value = value;
		}

		public ListItem(string name, string value, object tag)
		{
			this.name = name;
			this.value = value;
			this.tag = tag;
		}

		public object Tag
		{
			get
			{
				return this.tag;
			}
			set
			{
				this.tag = value;
			}
		}

		public string Name
		{
			get
			{
				return this.name;
			}
			set
			{
				this.name = value;
			}
		}

		public string Value
		{
			get
			{
				return this.value;
			}
			set
			{
				this.value = value;
			}
		}

		public override string ToString()
		{
			return this.name;
		}

		private string name;

		private string value;

		private object tag;
	}
}
